package com.surpassun.emall.repository;

import org.springframework.stereotype.Repository;

import com.surpassun.emall.model.User;
import com.surpassun.emall.util.QueryUtil;

/**
 *
 * @author Denis
 */
@Repository
public class UserRepository extends AbstractRepository<User> {

    public UserRepository() {
        super(User.class);
    }
    
    public User getUserByEmail(String email) {
    	return super.getSingleByField("email", email, QueryUtil.EQUAL);
    }
}
